Optimal. Leaf size=30 \[ \frac {a \tan (e+f x)}{f}+\frac {(a+b) \tan ^3(e+f x)}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {3270}
\begin {gather*} \frac {(a+b) \tan ^3(e+f x)}{3 f}+\frac {a \tan (e+f x)}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3270
Rubi steps
\begin {align*} \int \sec ^4(e+f x) \left (a+b \sin ^2(e+f x)\right ) \, dx &=\frac {\text {Subst}\left (\int \left (a+(a+b) x^2\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {a \tan (e+f x)}{f}+\frac {(a+b) \tan ^3(e+f x)}{3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 41, normalized size = 1.37 \begin {gather*} \frac {b \tan ^3(e+f x)}{3 f}+\frac {a \left (\tan (e+f x)+\frac {1}{3} \tan ^3(e+f x)\right )}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 46, normalized size = 1.53
method | result | size |
derivativedivides | \(\frac {-a \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (f x +e \right )\right )}{3}\right ) \tan \left (f x +e \right )+\frac {b \left (\sin ^{3}\left (f x +e \right )\right )}{3 \cos \left (f x +e \right )^{3}}}{f}\) | \(46\) |
default | \(\frac {-a \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (f x +e \right )\right )}{3}\right ) \tan \left (f x +e \right )+\frac {b \left (\sin ^{3}\left (f x +e \right )\right )}{3 \cos \left (f x +e \right )^{3}}}{f}\) | \(46\) |
risch | \(-\frac {2 i \left (3 \,{\mathrm e}^{4 i \left (f x +e \right )} b -6 a \,{\mathrm e}^{2 i \left (f x +e \right )}-2 a +b \right )}{3 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{3}}\) | \(49\) |
norman | \(\frac {-\frac {2 a \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f}-\frac {2 a \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f}-\frac {8 \left (a +b \right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 f}-\frac {8 \left (a +b \right ) \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 f}-\frac {4 \left (4 b +a \right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 f}}{\left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3} \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 29, normalized size = 0.97 \begin {gather*} \frac {{\left (a + b\right )} \tan \left (f x + e\right )^{3} + 3 \, a \tan \left (f x + e\right )}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 38, normalized size = 1.27 \begin {gather*} \frac {{\left ({\left (2 \, a - b\right )} \cos \left (f x + e\right )^{2} + a + b\right )} \sin \left (f x + e\right )}{3 \, f \cos \left (f x + e\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sin ^{2}{\left (e + f x \right )}\right ) \sec ^{4}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 38, normalized size = 1.27 \begin {gather*} \frac {a \tan \left (f x + e\right )^{3} + b \tan \left (f x + e\right )^{3} + 3 \, a \tan \left (f x + e\right )}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 14.16, size = 31, normalized size = 1.03 \begin {gather*} \frac {{\mathrm {tan}\left (e+f\,x\right )}^3\,\left (\frac {a}{3}+\frac {b}{3}\right )}{f}+\frac {a\,\mathrm {tan}\left (e+f\,x\right )}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________